
import { postRequest, getRequest } from '/@/lib/axios';

export const deviceApi = {
    // 设备查询
    list: (pageNum,pageSize) => {
        return getRequest('/device/list?pageNum='+pageNum+'&pageSize='+pageSize);
    },

    // 设备简短查询
    shortList1: (pageNum,pageSize) => {
        return getRequest('/device/shortList?pageNum='+pageNum+'&pageSize='+pageSize);
    },

    // 设备简短查询
    shortList: (queryForm) => {
        return postRequest('/device/shortList',queryForm);
    },

    //设备运行状态 /iot/device/runningStatus*
    getRunningStatus:(param) => {
        return getRequest('/device/getRunningStatusInfo',param);
    },
};
